import 'package:flutter/material.dart';
import 'package:flutter_shop/pages/home/info/index.dart';
import 'package:flutter_shop/pages/home/tab_Index/index_navigator.dart';
import 'package:flutter_shop/pages/home/tab_Index/index_recommond.dart';
import 'package:flutter_shop/widgets/common_swiper.dart';
import 'package:flutter_shop/widgets/search_bar/index.dart';
import 'package:flutter_swiper/flutter_swiper.dart';

class TabIndex extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: SearchBar(
            showLoaction: true,
            showMap: true,
            onSearch: () {
              Navigator.of(context).pushNamed('search');
            }),
        backgroundColor: Colors.white,
      ),
      body: Container(
        child: ListView(
          children: [
            CommonSwiper(),
            IndexNavigator(),
            IndexRecommond(),
            Info(
              showTitle: true,
            )
          ],
        ),
      ),
    );
  }
}
